package org.jeecg.modules.friends.enums;

/**
 * @author cold
 * @version 1.0
 * @data 2024/5/27 11:27
 */
public enum UserReportStatusEnum {
    UNKNOWN(0, "未知"),
    INIT(1, "举报成功-未解决"),
    PASSED(2, "已解决"),
    ;
    private int code;
    private String desc;

    UserReportStatusEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static UserReportStatusEnum of(Integer status) {
        for (UserReportStatusEnum value : UserReportStatusEnum.values()) {
            if (value.getCode() == status) {
                return value;
            }
        }
        return UNKNOWN;
    }


    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
